import VueRouter from 'vue-router'
//导入组件
import homeContainer from './components/tabbar/homeContainer.vue'
import menberContainer from './components/tabbar/menberContainer.vue'
import shopCarContainer from './components/tabbar/shopCarContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'
// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:homeContainer},
    {path:'/menber',component:menberContainer},
    {path:'/shopCar',component:shopCarContainer},
    {path:'/search',component:searchContainer}
  ],
  linkActiveClass:'mui-active'// 覆盖默认的路由高亮的类，默认的类叫做 router-link-active
})

// 把路由对象暴露出去
export default router